package com.zeng.sys.authmd.servicemodule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zeng.nicecore.bean.CommonBean;
import lombok.*;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
*
* @description 权限表
* @author 今天多少号
* @version 2019-11-15 18:14:13
*/
@Data
@Entity
@Table(name = "sys_permission")
@TableName(value = "sys_permission")
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
public class Permission extends CommonBean {

    //资源名称 
    private String name;

    //资源类型：menu,button, 
    @Column(length = 32)
    private String type;

    //访问url地址
    private String url;

    //父结点id
    @Column(length = 32)
    private String parentCode;

    //父结点id列表串
    private String parentCodes;

    //排序号
    @Column(length = 32)
    private String sortString;

    //权限配置
    @Column(length = 100)
    private String perConfig;

    //'是否可用,1：可用，0不可用
    @Column(length = 1)
    private Short available;

}
